package chapter4.No4_1_使用reentrantLock类.demo10;

/**
 * Created by Administrator on 2016/11/21.
 */
public class ThreadGet extends Thread {
    ServiceClass sc;

    public ThreadGet(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        try {
            while(true) {
                sc.get();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
